import request from '@/utils/request'

export function setFinanceConfig (params = {}) {
  return request({
    url: 'crm/fin/config',
    method: 'post',
    params: params
  })
}

export function getFinanceConfig (params = {}) {
  return request({
    url: 'crm/fin/config/list',
    method: 'get',
    params
  })
}

export function delFinAccount (id) {
  return request({
    url: 'crm/fin/account',
    method: 'delete',
    params: {
      id: id
    }
  })
}

export function addFinAccount (params = {}) {
  return request({
    url: 'crm/fin/account',
    method: 'post',
    params
  })
}
